package com.heying.springcore.aop.jdbc.entity;

import com.google.protobuf.DoubleValue;

import java.util.Date;

public class Books {

    private String isbn;

    private String title;

    private Date date;

    private int pubId;

    private Double cost;

    public Double retail;

    public String category;

    public Books() {
    }

    public Books(String isbn, String title, Date date, int pubId, Double cost, Double retail, String category) {
        this.isbn = isbn;
        this.title = title;
        this.date = date;
        this.pubId = pubId;
        this.cost = cost;
        this.retail = retail;
        this.category = category;
    }

    public String getIsbn() {
        return isbn;
    }

    public void setIsbn(String isbn) {
        this.isbn = isbn;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public int getPubId() {
        return pubId;
    }

    public void setPubId(int pubId) {
        this.pubId = pubId;
    }

    public Double getCost() {
        return cost;
    }

    public void setCost(Double cost) {
        this.cost = cost;
    }

    public Double getRetail() {
        return retail;
    }

    public void setRetail(Double retail) {
        this.retail = retail;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    @Override
    public String toString() {
        return "Books{" +
                "isbn='" + isbn + '\'' +
                ", title='" + title + '\'' +
                ", date=" + date +
                ", pubId=" + pubId +
                ", cost=" + cost +
                ", retail=" + retail +
                ", category='" + category + '\'' +
                '}';
    }
}
